package com.ruoyi.ssh.service;

import java.util.List;
import com.ruoyi.ssh.domain.QuestionOption;

/**
 * 题目选项Service接口
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
public interface IQuestionOptionService 
{
    /*根据id查询题目选项*/
    public QuestionOption selectQuestionOptionById(Integer id);

    /**
    * 根据题目ID查询选项
    *
    * @param questionId 题目ID
    * @return 题目选项
    */
    public QuestionOption selectQuestionOptionByQuestionId(Integer questionId);

    /**
    * 动态添加选项
    *
    * @param questionOption 题目选项
    * @return 结果
    */
    public int insertQuestionOption(QuestionOption questionOption);

    /**
    * 动态修改选项
    *
    * @param questionOption 题目选项
    * @return 结果
    */
    public int updateQuestionOption(QuestionOption questionOption);

    /*通过题目ID，联表查询出题目和选项全部信息*/
    public QuestionOption selectQuestionOptionWithQuestion(Integer questionId);

}
